package com.sync.data.mce.repository;


import com.sync.data.mce.entity.CoreDict;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xianchuang.li
 * @version 1.0.0
 * @description 仓库接口对应 core_dict 表
 * @since @since 2025/4/8 11:37
 **/
@Repository
public interface CoreDictRepository extends JpaRepository<CoreDict, String>, JpaSpecificationExecutor<CoreDict> {
    List<CoreDict> findCoreDictByObjectAndStatusField(String object,String statusField);
    List<CoreDict> findCoreDictByStatusField(String statusField);

    List<CoreDict> findByRecordTypeFieldAndObjectAndStatusField(String recordTypeField,String object, String statusField);
    List<CoreDict> findByObjectAndAttribute(String object, String attribute);
}

